<template>
  <div class="app" id="app">
    <!-- <div @click="ceshi">删除用户信息</div> -->
    <!-- <div class="app" id="app"> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <!-- tabbar -->
    <!-- <TabBar></TabBar> -->
  </div>
</template>
<script>
// import TabBar from '@/components/TabBar'
import {login} from '@/api/user.js'
export default {
  name: 'App',
  components: {
    // TabBar
  },
  data() {
    return {
      isWechat: true // 是否为微信环境（true：是；false：否）
    }
    // 页面路径带参
  },
  mounted() {},
  methods: {
    ceshi() {
      localStorage.removeItem('user')
    }
  }
}
</script>
<style lang="scss"></style>
